package com.rfid.mqtt.bean;

import java.util.List;

public class QrRespon {


    /**
     * data : {"data":[{"data":"001600120729","pos":{"x":334,"y":319},"distToCenter":80,"type":"QR-Code"}],"opId":"3003aa96-563e-4a67-a8ca-5d3653fd310d","action":"ScanQRCode","robotCode":"PATROLCPAT-CM-B33XXXPAT13S2320000004","status":4}
     * cmd : 90014
     */

    private DataBeanX data;
    private int cmd;

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public int getCmd() {
        return cmd;
    }

    public void setCmd(int cmd) {
        this.cmd = cmd;
    }

    public static class DataBeanX {
        /**
         * data : [{"data":"001600120729","pos":{"x":334,"y":319},"distToCenter":80,"type":"QR-Code"}]
         * opId : 3003aa96-563e-4a67-a8ca-5d3653fd310d
         * action : ScanQRCode
         * robotCode : PATROLCPAT-CM-B33XXXPAT13S2320000004
         * status : 4
         */

        private String opId;
        private String action;
        private String robotCode;
        private int status;
        private List<DataBean> data;

        public String getOpId() {
            return opId;
        }

        public void setOpId(String opId) {
            this.opId = opId;
        }

        public String getAction() {
            return action;
        }

        public void setAction(String action) {
            this.action = action;
        }

        public String getRobotCode() {
            return robotCode;
        }

        public void setRobotCode(String robotCode) {
            this.robotCode = robotCode;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * data : 001600120729
             * pos : {"x":334,"y":319}
             * distToCenter : 80
             * type : QR-Code
             */

            private String data;
            private PosBean pos;
            private int distToCenter;
            private String type;

            public String getData() {
                return data;
            }

            public void setData(String data) {
                this.data = data;
            }

            public PosBean getPos() {
                return pos;
            }

            public void setPos(PosBean pos) {
                this.pos = pos;
            }

            public int getDistToCenter() {
                return distToCenter;
            }

            public void setDistToCenter(int distToCenter) {
                this.distToCenter = distToCenter;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public static class PosBean {
                /**
                 * x : 334
                 * y : 319
                 */

                private int x;
                private int y;

                public int getX() {
                    return x;
                }

                public void setX(int x) {
                    this.x = x;
                }

                public int getY() {
                    return y;
                }

                public void setY(int y) {
                    this.y = y;
                }
            }
        }
    }
}
